#include "dominion.h"
#include <assert.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>

// We are testing numHandCards()

int main() {
	printf("Testing numHandCards()\n");
	struct gameState *G = newGame();

	// initialize random number
	srand(time(NULL));
	int r = rand();

	//Populate card options	
	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy};
	//populate G
	initializeGame(2, k, r, G);
	printf("Testing for correct count");
	assert(numHandCards(G) == G->handCount[G->whoseTurn]);
	printf("Test Passed.\n");
	printf("All tests passed.\n");
}
